//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.restaurant.application.indexes.goodscouponlist;

import com.nebutown.commonunits.dataface.definitions.TimeInterval;
import com.nebutown.description.DataTypes;
import com.nebutown.description.IndexGen;
import com.nebutown.description.UnitDescription;
import com.nebutown.description.data.Contributor;
import com.nebutown.description.data.IndexUnit;
import com.nebutown.description.data.SQLColumn;
import com.restaurant.application.goodscoupon.GoodsCoupon;

public class GoodsCouponListDesc extends UnitDescription {
    public GoodsCouponListDesc() {
    }

    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(AssistGoodsCouponList.class, (String)null);
        desc.addUiFunction("doSearch", "GoodsCouponSearch");
        desc.nextBean("GoodsCouponSearch").add("name", String.class).add("number", String.class).add("useful", String.class).add("state", String.class).add("firstTime", TimeInterval.class).add("firstCustomerId", String.class).add("firstPhone", String.class).add("usedTime", TimeInterval.class).add("usedCustomerId", String.class).add("usedPhone", String.class).add("page", Long.class);
        desc.nextBean("PadGoodsCouponSearch").add("name", String.class).add("modality", String.class).add("number", String.class).add("usedStartTime", Long.class).add("usedEndTime", Long.class).add("phone", String.class).add("page", Integer.class).add("pageSize", Integer.class);
        desc.run("./");
        IndexGen.run(getDescription(), "src/main/java");
    }

    public static IndexUnit getDescription() {
        return (new IndexUnit()).withName("GoodsCouponList").withPackageName(GoodsCouponListDesc.class.getPackage().getName() + ".mysql").withSrcLocation("./").addContributors((new Contributor()).withName("GoodsCoupon").withNullable(false).withUnique(true).withUnitType(GoodsCoupon.class.getName()).addContribution((new SQLColumn()).withName("goodsUID").withType(DataTypes.STRING).withLabel("商品UID").withWidth(255)).addContribution((new SQLColumn()).withName("name").withType(DataTypes.STRING).withLabel("商品名").withWidth(255)).addContribution((new SQLColumn()).withName("goodsId").withType(DataTypes.STRING).withLabel("商品Id").withWidth(255)).addContribution((new SQLColumn()).withName("couponNumber").withType(DataTypes.STRING).withLabel("券号").withWidth(255)).addContribution((new SQLColumn()).withName("createTime").withType(DataTypes.LONG).withLabel("领用时间").withWidth(255)).addContribution((new SQLColumn()).withName("firstCustomerId").withType(DataTypes.STRING).withLabel("领用人Id").withWidth(255)).addContribution((new SQLColumn()).withName("firstPhone").withType(DataTypes.STRING).withLabel("领用人手机").withWidth(255)).addContribution((new SQLColumn()).withName("useful").withType(DataTypes.STRING).withLabel("是否有效").withWidth(255)).addContribution((new SQLColumn()).withName("state").withType(DataTypes.STRING).withLabel("是否使用").withWidth(255)).addContribution((new SQLColumn()).withName("usedTime").withType(DataTypes.LONG).withLabel("使用日期").withWidth(255)).addContribution((new SQLColumn()).withName("usedCustomerId").withType(DataTypes.STRING).withLabel("使用人Id").withWidth(255)).addContribution((new SQLColumn()).withName("usedPhone").withType(DataTypes.STRING).withLabel("使用人手机").withWidth(255)).addContribution((new SQLColumn()).withName("cashierName").withType(DataTypes.STRING).withLabel("核销人").withWidth(255)).addContribution((new SQLColumn()).withName("deliveryState").withType(DataTypes.STRING).withLabel("发货状态").withWidth(255)).addContribution((new SQLColumn()).withName("type").withType(DataTypes.STRING).withLabel("类型").withWidth(255)).addContribution((new SQLColumn()).withName("orderNumber").withType(DataTypes.STRING).withLabel("订单编号").withWidth(255)).addContribution((new SQLColumn()).withName("address").withType(DataTypes.STRING).withLabel("配送地址").withWidth(255)).addContribution((new SQLColumn()).withName("logistical").withType(DataTypes.STRING).withLabel("物流编号").withWidth(255)).addContribution((new SQLColumn()).withName("currentCustomerId").withType(DataTypes.STRING).withLabel("当前人Id").withWidth(255)).addContribution((new SQLColumn()).withName("currentPhone").withType(DataTypes.STRING).withLabel("当前人手机").withWidth(255)).addContribution((new SQLColumn()).withName("currentName").withType(DataTypes.STRING).withLabel("当前人名").withWidth(255)).addContribution((new SQLColumn()).withName("currentCustomerUid").withType(DataTypes.STRING).withLabel("当前人uid").withWidth(255)));
    }
}
